<?php

//$username = $_POST['username'];

$conn = new PDO('mysql:host=localhost:3307;dbname=php','root','root');
$conn->exec('SET NAMES UTF8');

$res = $conn->prepare("select * from user");

if($res->execute()){
    echo $res->rowCount();
    
    echo "<br/>";
    echo $res->columnCount();
}

